﻿//双击事件
function CustomDbClick() {
    parent.closeWin(); //去掉双击功能    
}

//查看明细
var fnLinkDetail = function (elCell, oRecord, oColumn, sData) {
    //debugger;
    var yearMonth = oRecord.getData("YearMonth");
    var deptPath = oRecord.getData("DeptPath");
    var deptName = oRecord.getData("DeptName");
    elCell.innerHTML = "<a href=\"#\" onclick=\"javascript:fnOpenDetail('" + yearMonth + "','" + deptPath + "','" + deptName + "');\">" + sData + "</a>";
};

var fnOpenDetail = function (YearMonth, deptPath, deptName) {
    //debugger;
    var strCondition = "DeptPath like '" + deptPath + "%'";
    parent.addTabs(deptName + "_" + YearMonth + "_明细", encodeURI("../Extend/YUIDataTableList.aspx?entity=V_xzEmpGJJ&functionID=C0347A6D-57B0-4D1A-BE0B-F4DFC35E41CC&condition=YearMonth='" + YearMonth + "' and " + strCondition));
}

//初始化
if (typeof ($) != "undefined") {
    //debugger;
    $(document).ready(function () {

    });
}

